package com.example.demo.model.entity;

import com.example.demo.model.response.UserResponse;

import javax.persistence.*;

@Entity
@Table(name = "t_score")
public class ScoreModel {

    @Id
    @Column
    private String scoreId;

    @Column
    private String userId;

    @Column
    private Long createTime;

    @Column
    private Long score;

    @Column
    private String productId;

    @Column
    private String handlerId;

    @Column
    private String scoreDesc;

    @OneToOne
    @JoinColumn(name = "userId", insertable = false, updatable = false)
    UserModel userModel;

    public UserModel getUserModel() {
        return userModel;
    }

    public void setUserModel(UserModel userModel) {
        this.userModel = userModel;
    }

    public String getScoreId() {
        return scoreId;
    }

    public void setScoreId(String scoreId) {
        this.scoreId = scoreId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getHandlerId() {
        return handlerId;
    }

    public void setHandlerId(String handlerId) {
        this.handlerId = handlerId;
    }

    public String getScoreDesc() {
        return scoreDesc;
    }

    public void setScoreDesc(String scoreDesc) {
        this.scoreDesc = scoreDesc;
    }
}
